if upper(segur) ~= 'GUI' & upper(segur) ~= 'SAFE' & segur ~= '' then usal = 1
if upper(congui) ~= 'GUI' & upper(congui) ~= 'SAFE' & congui ~= '' then usal = 1
if accion ~= ''
then do
if upper(accion) = upper(segur) | upper(accion) = upper(congui) then usal = 1
end
if segur ~= '' then if upper(segur) = upper(congui) then usal = 1
if usal = 1
then do
IF Upper(LANG) = 'ESPAÑOL'
then do
say 'Usar: YamNet [PURGE/S|OUT/S] [SAFE/S] [GUI/S]'lin||lin'1-> YamNet'lin' Procesa a INBOUND mensajes RECIBIDOS en YAM de YamNet'lin'Escribe un recibo y borra mensajes enviados al encontrar'lin'un recibo remitido por otro YamNet.'lin||lin' Si recibe un encode estropeado manda un Resend-Request,'
Say 'y si recibe un mensaje Resend-Request trata de enviar el'lin'mensaje, previamente enviado, de nuevo a su destinatario.'lin||lin'2-> YamNet SAFE'lin' No borra ficheros tras procesarlos.'lin||lin'3-> YamNet PURGE'
Say ' Busca unicamente comprobantes ENVIADOS en el YAM y los borra'lin||lin'4-> YamNet OUT'lin' Traslada (uuencodea) paquetes de correo y (solo copia) ficheros de'lin'OUTBOUND a su destino por YAM.'lin||lin' >> GUI (al final) Permite al usuario elegir las opciones pulsando un boton.'
end
IF Upper(LANG) = 'ENGLISH'
then do
say 'Usage: YamNet [PURGE/S|OUT/S] [SAFE/S] [NOGUI/S]'lin||lin'1-> YamNet'lin' It sends to INBOUND files of messages at INCOMING in YAM received from'lin'one YamNet (YamGate or similar) then writes one receipt. And deletes'lin"the sended messages if finds another YamNet's(or similar) receipts."lin||lin'2-> YamNet SAFE'
say ' It does NOT deletes any files after process it.'lin||lin'3-> YamNet PURGE'lin' Only search SENT receipts in YAM and delete it'lin||lin'4-> YamNet OUT'lin' Move (uuencode) mail bundles & files(only copy) from OUTBOUND'lin' to his destination using YAM.'lin||lin' >> NOGUI (at the end) Says to program do not do questions to user.'
end
EXIT
end
if purge = 1 & safe = 1
then do
IF Upper(LANG) = 'ESPAÑOL' then Say 'ERROR: No pueden usarse los argumentos PURGE y SAFE simultaneamente.'
IF Upper(LANG) = 'ENGLISH' then Say 'ERROR: Cannot be used PURGE & SAFE arguments at same time.'
EXIT
end
if nogui = 1
then do
address command('run >NIL: <NIL: YNetGUI')
EXIT
end
Call Textos('!' , 'YamNet V3.07 Empezando a procesar' , 'YamNet V3.07 Starting to process')
if left(lalou,1) = '~' then Call Textos('#' , 'Fichero 'pakter' marcado en el 'loque' como ya enviado' , 'File 'pakter' marked in 'loque' as already sent')
Call Textos('#' , 'Comprobante y archivo original: BORRADOS.' , 'Receipt and original file: DELETED.')
paratese = 1
end
if aye = inicial then paratese = 1
end
end
if quesilova = 1
then do
puli = puli + 1
quesito.puli = secureci
end
end
Call Close('YRD')
if secambios = 1
then do
Call Open('YTD','Yam:YamNet.dat','W')
Call WriteLN('YTD',laprima)
do sssecu = 1 to puli
if quesito.sssecu ~= '' then Call WriteLN('YTD',quesito.sssecu)
end
Call Close('YTD')
end
if reborros = 1
then do
setfolder 0
mailupdate
end
end
if (inicial+1)-recisbis ~= 0 then Call Textos('#' , (inicial+1)-recisbis' Ficheros de RECIBI no se encontraron' , (inicial+1)-recisbis' files of receipts were not found')
Call MAXTextos('!' , recisbis' ficheros con su recibi BORRADOS.' , recisbis' files with its receipt DELETED.')
end
RETURN
EXIT
BORRAPORFECHA:
tercuss = 0
DROP ternued.
If exists('YAM:YamNet.dat')
then do
tercubo = 0
Call Open('YBF','Yam:YamNet.dat','R')
primepa = ReadLN('YBF')
cams = 0
do until EOF('YBF')
secupa = ReadLN('YBF')
recam = 0
if datatype(word(secupa,2),'N')
then do
multipud = 0
remola = 0
if datatype(word(secupa,1),'N') then multipud = word(secupa,1)
Call Textos('%' , 'Puedes examinar el mensaje en el fichero ['TEMP'YamNet.CHECK'nomb']' , 'You can look into the message in file ['TEMP'YamNet.CHECK'nomb']')
if tama ~= word(lared,3) then Call Textos('#' , '¡El fichero recibido fue generado con YamNet mas viejo!' , 'Received file was generated with older YamNet!')
if exists(TEMP'YamNet') then Address Command('delete >NIL: 'TEMP'YamNet ALL QUIET NOREQ FORCE')
IF LOGLEV = 1 | LOGLEV = 4
then do
e = 0
quienes = ''
do pompom = 1 to Nodos
If upper(LADRE.pompom) = upper(word(vienede,1)) & left(ELNO.pompom,length(tadon)) = tadon then quienes = ELNO.pompom
end
if quienes = '' then quienes = word(vienede,words(vienede))
IF UPPER(LANG) = 'ESPAÑOL' then say ' - 'date()' 'time()' Desde: 'quienes' - CRC32: 'tama
IF UPPER(LANG) = 'ENGLISH' then say ' - 'date()' 'time()' From: 'quienes' - CRC32: 'tama
end
IF LOGLEV = 2 | LOGLEV = 4
then do
if LOGLEV = 2
then do
eee = 0
pompom = 0
do until eee = 1
pompom = pompom + 1
If upper(LADRE.pompom) = upper(word(vienede,1)) & left(ELNO.pompom,length(tadon)) = tadon
then do
quienes = ELNO.pompom
eee = 1
end
if pompom = Nodos then eee = 1
end
end
if quienes = '' then quienes = word(vienede,words(vienede))
IF UPPER(LANG) = 'ESPAÑOL' then Address Command('echo >>t:logyamnet.tmp " - 'date()' 'time()' Desde: 'quienes' - CRC32: 'tama'"')
IF UPPER(LANG) = 'ENGLISH' then Address Command('echo >>t:logyamnet.tmp " - 'date()' 'time()' From: 'quienes' - CRC32: 'tama'"')